public async Task ParseFromProjectTest() { var parser = new AppBundleInformationParser(Mock.Of <IMlaunchProcessManager>()); var info = await parser.ParseFromProject(s_projectFilePath, TestTarget.Simulator_iOS64, "Debug"); Assert.Equal(AppName, info.AppName); Assert.Equal(s_appPath, info.AppPath); Assert.Equal(s_appPath, info.LaunchAppPath); Assert.Equal(AppName, info.BundleIdentifier); }
public async Task ParseFromProjectWithLocatorTest() { var locator = new Mock <IAppBundleLocator>(); locator .Setup(x => x.LocateAppBundle(It.IsAny <XmlDocument>(), s_projectFilePath, TestTarget.Simulator_iOS64, "Debug")) .ReturnsAsync("bin2") .Verifiable(); var parser = new AppBundleInformationParser(Mock.Of <IMlaunchProcessManager>(), locator.Object); var info = await parser.ParseFromProject(s_projectFilePath, TestTarget.Simulator_iOS64, "Debug"); Assert.Equal(AppName, info.AppName); Assert.Equal(s_appPath2, info.AppPath); Assert.Equal(s_appPath2, info.LaunchAppPath); Assert.Equal(AppName, info.BundleIdentifier); locator.VerifyAll(); }