コード例 #1
0
        public void LaunchAppWithoutDeviceThrowsExcetpion()
        {
            AppInfo app = AppBuilderTestExtensions.GetMockAppInfo("FakeApp",
                                                                  PlatformName.WindowsPhone7);

            Assert.Throws <AppInfo.NoDeviceSpecified>(() => app.LaunchAppOnDevice(null));
        }
コード例 #2
0
        public void ItShouldAlwaysBePossibleToUseWindowsPlatform()
        {
            AppInfo app = AppBuilderTestExtensions.GetMockAppInfo("FakeApp", PlatformName.Windows);

            Assert.IsNotEmpty(app.AvailableDevices);
        }