AIMA.Test.Core.Unit.SetOpsTest.testUnion C# (CSharp) Method

testUnion() private method

private testUnion ( ) : void
return void
	public void testUnion() {
		List<int> union = SetOps.union(s1, s2);
        Assert.AreEqual(6, union.Count);
        Assert.AreEqual(4, s1.Count);
        Assert.AreEqual(3, s2.Count);

		s1.Remove(1);
        Assert.AreEqual(6, union.Count);
        Assert.AreEqual(3, s1.Count);
        Assert.AreEqual(3, s2.Count);
	}