public void Input1_Output1() { // Setup string input_1 = FileManager.LoadInputFromResourceFile("Input_1.txt"); string output_1 = FileManager.LoadOutputFromResourceFile("Output_1.txt"); // Action string result = receiptManager.GenerateReceipt(input_1); // Assert Assert.AreEqual(output_1, result); }
public void GenerateReceipt_NullInput_ThrowsArgumentException() { try { receiptManager.GenerateReceipt(null); Assert.Fail(); } catch (Exception ex) { Assert.IsInstanceOfType(ex, typeof(ArgumentException)); } }