mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-11-05 10:36:30 +01:00
58 lines
1 KiB
C#
58 lines
1 KiB
C#
using NUnit.Framework;
|
|
|
|
namespace SharedBusinessLogic.Tests.Model.Station
|
|
{
|
|
[TestFixture]
|
|
public class TestData
|
|
{
|
|
[Test]
|
|
public void TestCtor()
|
|
{
|
|
var data = new ShareeBike.Model.Stations.StationNS.Operator.Data();
|
|
Assert.That(
|
|
data.Color,
|
|
Is.Null);
|
|
|
|
Assert.That(
|
|
data.Hours,
|
|
Is.EqualTo(string.Empty));
|
|
|
|
Assert.That(
|
|
data.Name,
|
|
Is.EqualTo(string.Empty));
|
|
|
|
Assert.That(
|
|
data.MailAddressText,
|
|
Is.EqualTo(string.Empty));
|
|
|
|
Assert.That(
|
|
data.PhoneNumberText,
|
|
Is.EqualTo(string.Empty));
|
|
}
|
|
|
|
[Test]
|
|
public void TestCtor_Null()
|
|
{
|
|
var data = new ShareeBike.Model.Stations.StationNS.Operator.Data(null, null, null, null, null);
|
|
Assert.That(
|
|
data.Color,
|
|
Is.Null);
|
|
|
|
Assert.That(
|
|
data.Hours,
|
|
Is.EqualTo(string.Empty));
|
|
|
|
Assert.That(
|
|
data.Name,
|
|
Is.EqualTo(string.Empty));
|
|
|
|
Assert.That(
|
|
data.MailAddressText,
|
|
Is.EqualTo(string.Empty));
|
|
|
|
Assert.That(
|
|
data.PhoneNumberText,
|
|
Is.EqualTo(string.Empty));
|
|
}
|
|
}
|
|
}
|