Example #1
0
        public void ParseSunrise_WithGoodData_ReturnsExpectedString()
        {
            string expected = "2:35:18 PM";
            string result   = SunsetTDD.ParseSunrise(sampleData);

            Assert.AreEqual(expected, result);
        }
Example #2
0
        public void ParseSunrise_WithErrorData_ReturnsNull()
        {
            string result = SunsetTDD.ParseSunrise(errorData);

            Assert.IsNull(result);
        }
Example #3
0
        public void ParseSunrise_WithGoodData_ReturnsString()
        {
            string result = SunsetTDD.ParseSunrise(sampleData);

            Assert.IsNotNull(result);
        }