sharee.bike-App/TestShareeLib/Model/Station/TestData.cs
Anja Müller-Meißner 0468955d49 Version 3.0.338
2022-09-08 09:55:14 +02:00

59 lines
981 B
C#

using NUnit.Framework;
namespace TestShareeLib.Model.Station
{
[TestFixture]
public class TestData
{
[Test]
public void TestCtor()
{
var data = new TINK.Model.Station.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 TINK.Model.Station.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));
}
}
}