public void TestWcSettingsConstructorClassic() { // Act _settings = new wcSettings(new ParsingTarget(), new string[0]); // Assert Assert.IsEmpty(_settings.Flags); Assert.IsEmpty(_settings.Paths); }
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); }