public void SetBits_Correct_1() { int value = 9; int[] bitsToSet = new int[] { 2 }; int newValue = _myInterface.SetBits(value, bitsToSet); Assert.AreEqual(newValue, 13); }
public void GetBitsSet_Parameter_From_SetBits_Method() { int value = _myInterface.SetBits(9, new[] { 2 }); var result = _myInterface.GetBitsSet(value); var expectedList = new List <int> { 0, 1, 3 }; bool isTrue = result.SequenceEqual(expectedList); Assert.AreEqual(isTrue, true); }