ABB.Swum.Nodes.Tests.MethodDeclarationNodeTests.TestConstructor_Context C# (CSharp) Method

TestConstructor_Context() private method

private TestConstructor_Context ( ) : void
return void
        public void TestConstructor_Context() {
            MethodContext mc = new MethodContext("STATUS", false);
            MethodDeclarationNode mdn = new MethodDeclarationNode("MyMethod", mc);
            Assert.AreEqual("MyMethod", mdn.Name);
            Assert.AreEqual(mc, mdn.Context);
            Assert.AreEqual(MethodRole.Unknown, mdn.Role);
            Assert.IsNull(mdn.FormalParameters);
            Assert.IsNull(mdn.DeclaringClass);
            Assert.IsNull(mdn.ReturnType);
            Assert.IsNull(mdn.Action);
            Assert.IsNull(mdn.Theme);
            Assert.IsNull(mdn.SecondaryArguments);
            Assert.IsNull(mdn.UnknownArguments);
            Assert.IsFalse(mdn.IsReactive);
            Assert.IsFalse(mdn.IsConstructor);
            Assert.IsFalse(mdn.IsDestructor);
        }