コード例 #1
0
        public void TestNewInstanceOfStationResultSetsWithNullParamsSetsThePropertiesCorrectly()
        {
            // Arrange
            var nextChars = new List<char>() { 'a' };
            var stations = new List<string>() { "aa" };

            // Act
            var result = new StationSearchResult(null, null);

            // Assert
            Assert.IsNotNull(result.NextPossibleCharacters);
            Assert.IsNotNull(result.Stations);
        }
コード例 #2
0
        public void TestNewInstanceOfStationResultSetsThePropertiesCorrectly()
        {
            // Arrange
            var nextChars = new List<char>() { 'a' };
            var stations = new List<string>() { "aa" };

            // Act
            var result = new StationSearchResult(nextChars, stations);

            // Assert
            Assert.IsTrue(result.NextPossibleCharacters.Equals(nextChars));
            Assert.IsTrue(result.Stations.Equals(stations));
        }