示例#1
0
        public void ShouldIncludeFileName(string scriptFilePath)
        {
            //arrange
            var fixture = new CakeFixture(true, scriptFilePath);
            //act
            var result = fixture.Run();

            //result
            Assert.True(result.Args.Contains(scriptFilePath));
        }
示例#2
0
        public void ShouldThrowIfFileNotExists()
        {
            // arrange
            var fixture = new CakeFixture(false);
            //act
            var result = Record.Exception(() => fixture.Run());

            //assert
            Assert.IsType(typeof(FileNotFoundException), result);
        }