예제 #1
0
        public void TestWcSettingsConstructorClassic()
        {
            // Act
            _settings = new wcSettings(new ParsingTarget(), new string[0]);

            // Assert
            Assert.IsEmpty(_settings.Flags);
            Assert.IsEmpty(_settings.Paths);
        }
예제 #2
0
        public void TestWcSettingsConstructorConstraint()
        {
            // Arrange
            ParsingTarget p = new ParsingTarget();

            p.fLines  = true;
            p.fVolume = false;
            p.fWords  = true;
            List <String> expectedFlags = new List <string>()
            {
                "l", "w"
            };

            string[] paths = new[] { "firstpath.txt", "secpath.txt" };

            //Act
            _settings = new wcSettings(p, paths);

            // Assert
            Assert.AreEqual(expectedFlags, _settings.Flags);
            Assert.AreEqual(paths, _settings.Paths);
        }