public void ShouldBeEqual() { var dateTime1 = new CypherDateTime(1947, 12, 17, 15, 12, 01, 789000000); var dateTime2 = new CypherDateTime(new DateTime(1947, 12, 17, 15, 12, 01, 789, DateTimeKind.Local)); dateTime1.Equals(dateTime2).Should().BeTrue(); }
public void ShouldNotBeEqualToAnotherType() { var dateTime = new CypherDateTime(1947, 12, 17, 15, 12, 01, 789000000); var other = "some string"; dateTime.Equals(other).Should().BeFalse(); }
public void ShouldNotBeEqualToNull() { var dateTime = new CypherDateTime(1947, 12, 17, 15, 12, 01, 789000000); var other = (object)null; dateTime.Equals(other).Should().BeFalse(); }
public void ShouldNotBeEqual() { var dateTime1 = new CypherDateTime(1947, 12, 17, 15, 12, 01, 789000000); var dateTime2 = new CypherDateTime(new DateTime(1947, 12, 17, 15, 12, 01, 788)); dateTime1.Equals(dateTime2).Should().BeFalse(); }