public void Set_is_not_a_subset_of_set_that_does_not_contain_its_elements() { var set2 = new CustomSet(new[] { 4, 1, 3 }); var sut = new CustomSet(new[] { 1, 2, 3 }); Assert.False(sut.Subset(set2)); }
public void Set_is_a_subset_of_larger_set_with_same_elements() { var set2 = new CustomSet(new[] { 4, 1, 2, 3 }); var sut = new CustomSet(new[] { 1, 2, 3 }); Assert.True(sut.Subset(set2)); }
public void Empty_set_is_a_subset_of_non_empty_set() { var set2 = new CustomSet(new[] { 1 }); var sut = new CustomSet(); Assert.True(sut.Subset(set2)); }
public void Non_empty_set_is_not_a_subset_of_empty_set() { var set2 = new CustomSet(); var sut = new CustomSet(new[] { 1 }); Assert.False(sut.Subset(set2)); }
public void Empty_set_is_a_subset_of_another_empty_set() { var set2 = new CustomSet(); var sut = new CustomSet(); Assert.True(sut.Subset(set2)); }