public void AddSentryToMain_InvalidMain_ThrowsException() { var main = string.Empty; var nativeMain = new NativeMain(); var assert = Assert.Throws <ArgumentException>(() => nativeMain.AddSentryToMain(main)); Assert.AreEqual("main", assert.ParamName); }
public void AddSentryToMain_SentryNotAddedTo_MatchesExpectedOutput() { var main = GetFileContents("main.txt"); var expectedMain = GetFileContents("main_expected.txt"); var nativeMain = new NativeMain(); var actualMain = nativeMain.AddSentryToMain(main); Assert.AreEqual(expectedMain, actualMain); }