public void Length_1234_4() { var act = HouseNumber.Create(1234).Length; var exp = 4; Assert.AreEqual(exp, act); }
public void Create_Int32MinValue_ThrowsArgumentOutOfRangeException() { ExceptionAssert.CatchArgumentOutOfRangeException (() => { HouseNumber.Create(Int32.MinValue); }, "val", "Not a valid house number"); }
private void TestAddPersonToCommunityByNameAndAddress() { Console.WriteLine("# TestAddPersonToCommunityByNameAndAddress"); var communityPerson = PrivateCommunityClient().AddPersonToCommunity( NameParam.Create("Karius", "Davidsen"), AddressParam.Create("Úti í Bø", HouseNumber.Create(16), "Syðrugøta") ); PrintCommunityPerson(communityPerson); }
private void TestGetPersonMediumByNameAndAddress() { Console.WriteLine("# TestGetPersonMediumByNameAndAddress"); var person = MediumClient().GetPerson( NameParam.Create("Karius", "Davidsen"), AddressParam.Create("Úti í Bø", HouseNumber.Create(16), "Syðrugøta") ); PrintPerson(person); }
public void IsEven_1234_IsTrue() { Assert.IsTrue(HouseNumber.Create(1234).IsEven); }
public void MaxValue_None_999999999() { Assert.AreEqual(HouseNumber.Create(999999999), HouseNumber.MaxValue); }
public void MinValue_None_1() { Assert.AreEqual(HouseNumber.Create(1), HouseNumber.MinValue); }