Ejemplo n.º 1
0
        public void Build_method_should_cause_PostBuildEvent_to_populate_eventArgs()
        {
            // Arrange
            var eventFiredMock = new BuilderEventFiredMock();

            // Act
            var dummy = eventFiredMock.Build();

            // Assert
            dummy.ShouldNotBeNull();
            eventFiredMock.PostBuildEventArgs.ShouldNotBeNull();
            eventFiredMock.PostBuildEventArgs.BuiltObject.ShouldNotBeNull();
            dummy.ShouldEqual(eventFiredMock.PostBuildEventArgs.BuiltObject);
        }
Ejemplo n.º 2
0
        public void Build_method_should_cause_PostBuildEvent_to_fire()
        {
            // Arrange
            var eventFiredMock = new BuilderEventFiredMock();

            // Act
            eventFiredMock.Build();

            // Assert
            eventFiredMock.OnPostBuildEventFired.ShouldBeTrue();
        }