public void TestIt(int num, int expected) { //Given FlipBitToWin test = new FlipBitToWin(); //When int result = test.FindLongestSequence(num); //Then Assert.Equal(expected, result); }
public void Test1() { //Arrange var flipBitToWin = new FlipBitToWin(); //Act var result = flipBitToWin.FindMaxCountOfContinuousOnesInBinaryStringIfOneBitIsFlipped(0b0001_0010_1011_1011_0101_0001); //Assert Assert.Equal(6, result); }