Ejemplo n.º 1
0
            public void HasSplashScreen()
            {
                var splash      = A.Fake <ISplash>();
                var application = new WinApplicationBuilder()
                                  .WithSplashScreen(splash)
                                  .Build();

                application.SplashScreen.ShouldBe(splash);
            }
Ejemplo n.º 2
0
            public void UsesSplashScreen()
            {
                var splash      = A.Fake <ISplash>();
                var application = new WinApplicationBuilder()
                                  .WithSplashScreen(splash)
                                  .Build();

                application.StartSplash();
                application.StopSplash();

                A.CallTo(() => splash.Start()).MustHaveHappened()
                .Then(A.CallTo(() => splash.Stop()).MustHaveHappened());
            }