public void InShouldGiveFalseWhen1NotAmong3() { TestEnum value = TestEnum.NumberFour; bool expected = false; bool actual = value.In(TestEnum.Two, TestEnum.ILikeSDE, TestEnum.one); Assert.AreEqual(expected, actual); }
public void InShouldGiveTrueWhen1Among1() { TestEnum value = TestEnum.one; bool expected = true; bool actual = value.In(TestEnum.one); Assert.AreEqual(expected, actual); }
public void Enum_In(TestEnum value, TestEnum[] inValues, bool expectedResult) { // Arrange // Act var result = value.In(inValues); // Assert result.Should().Be(expectedResult); }