示例#1
0
            public void SendsApplicationInstallLocation(ApplicationInstallLocation installLocation)
            {
                PlatformInfo.InstallLocation.Returns(installLocation);
                PlatformInfo.Platform.Returns(Platform.Giskard);

                executeInteractor().Wait();

                feedbackApi.Received().Send(Arg.Any <Email>(), Arg.Any <string>(), Arg.Is <Dictionary <string, string> >(
                                                data => data[InstallLocation] == installLocation.ToString())).Wait();
            }
示例#2
0
            public void DoesNotSendApplicationInstallLocationOnIOs(ApplicationInstallLocation installLocation)
            {
                PlatformInfo.InstallLocation.Returns(installLocation);
                PlatformInfo.Platform.Returns(Platform.Daneel);

                executeInteractor().Wait();

                feedbackApi.DidNotReceive().Send(Arg.Any <Email>(), Arg.Any <string>(), Arg.Is <Dictionary <string, string> >(
                                                     data => data[InstallLocation] == installLocation.ToString())).Wait();
            }