public void ParseJsonSunsetValue_OnGoodData_ReturnExpectedString() { // Arrange string expected = "4:42:49 PM"; // Act string actual = ServiceSunsetCalculator.ParseSunset(successData); // Assert Assert.Equal(expected, actual); }
public void ParseJsonSunsetValue_OnBadData_ThrowArgumentxception() { try { // Act string actual = ServiceSunsetCalculator.ParseSunset(errorData); // Assert Assert.True(false, "ArgumentException was not thrown"); } catch (ArgumentException) { // Assert Assert.True(true); } }