Main() public static method

public static Main ( string args ) : int
args string
return int
コード例 #1
0
ファイル: BaseTests.cs プロジェクト: Rashair/MiniCompiler
        protected void Invoke([CallerMemberName] string caller = null)
        {
            // Arrange
            string testCasePath = GetPath(caller);

            string[] args = GetArgs(testCasePath);

            // Act
            int result = Compiler.Main(args);

            // Assert
            Assert.AreEqual(expectedResult, result);
            AssertCorrect(testCasePath);
        }