public void GetAccessorTest_AccessorNotFound() { string[] args = { }; CommandReader target = new CommandReader(args); string actual; actual = target.Accessor(); Assert.IsNull(actual); }
public void GetAccessorTest_AccessorFound() { string[] args = { "read test" }; CommandReader target = new CommandReader(args); string expected = "Command list"; string actual; actual = target.Accessor(); Assert.AreEqual(expected, actual); }
public void SetFileTest() { CommandReader target = new CommandReader(); string filename = "testfilename"; target.AddFile(filename); string expected = "testfilename"; string actual = target.Accessor(); Assert.AreEqual(expected, actual); }