コード例 #1
0
        public void TestSetNameCommand()
        {
            string  name = "This is a test name";
            Command cmd  = new CommandTest(name);

            Assert.AreEqual(name, cmd.Name);
        }
コード例 #2
0
 public void TestSetNameCommand()
 {
     string name = "This is a test name";
     Command cmd = new CommandTest(name);
     Assert.AreEqual(name, cmd.Name);
 }
コード例 #3
0
        public void TestInheritedNameCommand()
        {
            Command cmd = new CommandTest();

            Assert.AreEqual(nameof(CommandTest), cmd.Name);
        }
コード例 #4
0
 public void TestInheritedNameCommand()
 {
     Command cmd = new CommandTest();
     Assert.AreEqual(nameof(CommandTest), cmd.Name);
 }