示例#1
0
        private void WrapAndInvokeEverything(ComplexClass_Default_Constructure cc)
        {
            cc.DoNothing();
            cc.DoSomething();
            int arg = 1;

            cc.DoSomething(arg);
            cc.DoSomething(arg, "hiya");

            cc.Pong(ref arg);

            cc.Name = "John Johnson";
            Assert.AreEqual("John Johnson", cc.Name);
            cc.Started = true;
            Assert.IsTrue(cc.Started);
        }
示例#2
0
        private void WrapAndInvokeEverything(ComplexClass_Default_Constructure cc)
        {
            cc.DoNothing();
            cc.DoSomething();
            int arg = 1;

            cc.DoSomething(arg);
            cc.DoSomething(arg, "hiya");

            cc.Pong(ref arg);

            cc.Name = "John Johnson";
            Assert.AreEqual("John Johnson", cc.Name);
            cc.Started = true;
            Assert.IsTrue(cc.Started);
        }