public void BinaryValue_SubtractionInDecimalFromStrings_inputOne_10000000000000000000000000000001_inputTwo_1_should_return_valid_binary() { // Arrange var inputOne = "10000000000000000000000000000001"; var inputTwo = "1"; var expectedDecimal = "2147483648"; // Act var actualDecimal = BinaryValue.SubtractionInDecimalFromStrings(inputOne, inputTwo); // Assert Assert.AreEqual(expectedDecimal, actualDecimal, "converting subtraction to binary: 2147483648"); }
public void BinaryValue_SubtractionInDecimalFromStrings_inputOne_11111111_inputTwo_00000000_should_return_valid_decimal() { // Arrange var inputOne = "11111111"; var inputTwo = "00000000"; var expectedDecimal = 255; // Act var actualDecimal = BinaryValue.SubtractionInDecimalFromStrings(inputOne, inputTwo); // Assert Assert.AreEqual(expectedDecimal, actualDecimal, "converting subtraction to decimal: 255"); }