示例#1
0
        public void GetAccessorTest_AccessorNotFound()
        {
            string[]      args   = { };
            CommandReader target = new CommandReader(args);
            string        actual;

            actual = target.Accessor();
            Assert.IsNull(actual);
        }
示例#2
0
        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);
        }
示例#3
0
        public void SetFileTest()
        {
            CommandReader target   = new CommandReader();
            string        filename = "testfilename";

            target.AddFile(filename);
            string expected = "testfilename";
            string actual   = target.Accessor();

            Assert.AreEqual(expected, actual);
        }