public void SetUtcKind_ChangedTest() { // Arrange var dt = new DateTime(DateTime.Now.Ticks, DateTimeKind.Unspecified); // Act var result = LocalizationUtils.SetUtcKind(dt); // Assert Assert.AreEqual(DateTimeKind.Utc, result.Kind); }
public void SetUtcKind_NoChangedTest() { // Arrange var dt = DateTime.Now; // Act var result = LocalizationUtils.SetUtcKind(dt); // Assert Assert.AreEqual(DateTimeKind.Local, result.Kind); }