예제 #1
0
        public void ClassMethod()
        {
            var c1 = new C1Builder(this.Session).Build();

            var classMethod = c1.ClassMethod();

            Assert.AreEqual("C1TestC1BaseC1Core", classMethod.Value);
        }
예제 #2
0
        public void ClassMethod()
        {
            var c1 = new C1Builder(this.Session).Build();

            var classMethod = c1.ClassMethod();

            Assert.Equal("C1CustomC1BaseC1Core", classMethod.Value);
        }
예제 #3
0
        public void CallMethodTwice()
        {
            var c1 = new C1Builder(this.Session)
                .Build();

            var classMethod = c1.ClassMethod();

            var exceptionThrown = false;
            try
            {
                classMethod.Execute();
            }
            catch
            {
                exceptionThrown = true;
            }

            Assert.IsTrue(exceptionThrown);
        }
예제 #4
0
        public void CallMethodTwice()
        {
            var c1 = new C1Builder(this.Session)
                     .Build();

            var classMethod = c1.ClassMethod();

            var exceptionThrown = false;

            try
            {
                classMethod.Execute();
            }
            catch
            {
                exceptionThrown = true;
            }

            Assert.True(exceptionThrown);
        }