sharee.bike-App/SharedBusinessLogic.Tests/Model/Station/TestData.cs

59 lines
1 KiB
C#
Raw Permalink Normal View History

2023-04-19 12:14:14 +02:00
using NUnit.Framework;
2024-04-09 12:53:23 +02:00
namespace SharedBusinessLogic.Tests.Model.Station
{
2022-09-06 16:08:19 +02:00
[TestFixture]
public class TestData
{
[Test]
public void TestCtor()
{
2024-04-09 12:53:23 +02:00
var data = new ShareeBike.Model.Stations.StationNS.Operator.Data();
2022-09-06 16:08:19 +02:00
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()
{
2024-04-09 12:53:23 +02:00
var data = new ShareeBike.Model.Stations.StationNS.Operator.Data(null, null, null, null, null);
2022-09-06 16:08:19 +02:00
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));
}
}
}