コード例 #1
0
        public void ShouldFailIfFutureIsNotDependency()
        {
            var task = new TaskWithFutureNotDependency(new StringWriter())
            {
                Description = "one"
            };

            Assert.That(() => task.TestBuild(), Throws.InstanceOf(typeof(DependencyBuildFailureException)));
        }
コード例 #2
0
ファイル: TaskOfTTest.cs プロジェクト: nbucket/bounce
        public void ShouldFailIfFutureIsNotDependency() {
            var task = new TaskWithFutureNotDependency(new StringWriter()) {Description = "one"};

            Assert.That(() => task.TestBuild(), Throws.InstanceOf(typeof (DependencyBuildFailureException)));
        }