Exemplo n.º 1
0
            public void Should_Add_Action_To_Task()
            {
                // Given
                var task = new CakeTask("task");

                // When
                task.AddAction(c => Task.CompletedTask);

                // Then
                Assert.Single(task.Actions);
            }
Exemplo n.º 2
0
            public void Should_Throw_If_Action_Is_Null()
            {
                // Given
                var task = new CakeTask("task");

                // When
                var result = Record.Exception(() => task.AddAction(null));

                // Then
                AssertEx.IsArgumentNullException(result, "action");
            }