public void CheckSynchronizationWithAngularFuctionality() { var driverContext = new Ocaramba.DriverContext { CurrentDirectory = TestContext.CurrentContext.TestDirectory }; driverContext.Start(); var Default_false = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver); driverContext.Driver.SynchronizeWithAngular(true); var TurnOn_true = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver); driverContext.Driver.SynchronizeWithAngular(false); var TurnOn_false = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver); driverContext.Stop(); Assert.False(Default_false, "Default setting is not false"); Assert.True(TurnOn_true, "Setting is not true"); Assert.False(TurnOn_false, "Setting is not false"); }
public void CheckSynchronizationWithAngularFuctionality() { #if netcoreapp2_2 string folder = Directory.GetCurrentDirectory(); #endif #if net47 string folder = TestContext.CurrentContext.TestDirectory; #endif var driverContext = new Ocaramba.DriverContext { CurrentDirectory = folder }; driverContext.Start(); var Default_false = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver); driverContext.Driver.SynchronizeWithAngular(true); var TurnOn_true = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver); driverContext.Driver.SynchronizeWithAngular(false); var TurnOn_false = DriversCustomSettings.IsDriverSynchronizationWithAngular(driverContext.Driver); driverContext.Stop(); Assert.False(Default_false, "Default setting is not false"); Assert.True(TurnOn_true, "Setting is not true"); Assert.False(TurnOn_false, "Setting is not false"); }