sharee.bike-App/SharedBusinessLogic.Tests/Model/State/TestStateBookedInfo.cs

28 lines
562 B
C#
Raw Normal View History

2024-04-09 12:53:23 +02:00
using System;
using NUnit.Framework;
using ShareeBike.Model.State;
namespace SharedBusinessLogic.Tests
{
[TestFixture]
public class TestStateBookedInfo
{
[Test]
public void TestConstruct()
{
var l_oBookedInfo = new StateOccupiedInfo(new DateTime(2017, 09, 20, 23, 05, 0), "Heinz@mueller", "17 xxb");
Assert.That(
l_oBookedInfo.From, Is.EqualTo(new DateTime(2017, 09, 20, 23, 05, 0)));
Assert.That(
l_oBookedInfo.MailAddress, Is.EqualTo("Heinz@mueller"));
Assert.That(
l_oBookedInfo.Code, Is.EqualTo("17 xxb"));
}
}
}