public void TryCreate_Value_AreEqual() { var exp = TestStruct; var act = HouseNumber.TryCreate(123456789); Assert.AreEqual(exp, act); }
public void TryCreate_Int32MinValue_IsEmpty() { HouseNumber exp = HouseNumber.Empty; Assert.IsFalse(HouseNumber.TryCreate(Int32.MinValue, out HouseNumber act)); Assert.AreEqual(exp, act); }
public void TryCreate_Int32MinValue_AreEqual() { var exp = HouseNumber.Empty; var act = HouseNumber.TryCreate(Int32.MinValue); Assert.AreEqual(exp, act); }
public void TryCreate_Null_IsEmpty() { HouseNumber exp = HouseNumber.Empty; Assert.IsTrue(HouseNumber.TryCreate(null, out HouseNumber act)); Assert.AreEqual(exp, act); }