public void TestClearSecondaryArguments_Null() { MethodDeclarationNode mdn = new MethodDeclarationNode("foo"); mdn.ClearSecondaryArguments(); Assert.IsNotNull(mdn.SecondaryArguments); Assert.AreEqual(0, mdn.SecondaryArguments.Count); }
public void TestClearSecondaryArguments_Null_ExistingArgs() { MethodDeclarationNode mdn = new MethodDeclarationNode("MyMethod"); VariableDeclarationNode vdn = new VariableDeclarationNode("foo"); mdn.AddSecondaryArgument(vdn, new WordNode("to", PartOfSpeechTag.Preposition)); Assert.AreEqual(1, mdn.SecondaryArguments.Count); mdn.ClearSecondaryArguments(); Assert.AreEqual(0, mdn.SecondaryArguments.Count); }