public void 詢問SafeCollection是否包含目標元素_含有該元素_應回傳True() { var safeCollection = new SafeCollection <int> { 1, 2, 3 }; var isContain = safeCollection.Contains(2); isContain.Should().Be(true); }
public void 詢問SafeCollection是否包含目標元素_不含有該元素_應回傳False() { var safeCollection = new SafeCollection <int> { 1, 2, 3 }; var isContain = safeCollection.Contains(4); isContain.Should().Be(false); }