public void ValidateRunTasks() { CommandApp commandApp = new CommandApp(); RangeCollection rangeColl = new RangeCollection(1, 500); try { commandApp.RunTasks(rangeColl, 10); ApplicationLog.WriteLine("CommandApp BVT: CommandApp RunTasks Validated successfully"); } catch (Exception ex) { ApplicationLog.WriteLine(string.Format((IFormatProvider)null, "CommandApp BVT: CommandApp RunTasks Validated successfully: {0}", ex.Message)); Assert.Fail("CommandApp BVT: CommandApp RunTasks Not validated successfully"); } }
public void ValidateDistribute() { RaiseError raiseError = new RaiseError(); IDistributable idistributable = new CommandApp(); try { raiseError.Distribute(idistributable); Assert.Fail("RaiseError BVT: RaiseError Distribute Not validated successfully"); } catch (NotImplementedException ex) { ApplicationLog.WriteLine(string.Format((IFormatProvider)null, "RaiseError BVT: RaiseError Distribute validated successfully:", ex.Message)); } }
public void ValidateCancel() { SelfDistributable selfDistributable = new CommandApp(); try { selfDistributable.Distribute = new Locally(); selfDistributable.Cancel(); ApplicationLog.WriteLine("SelfDistributable BVT: SelfDistributable Cancel Validated successfully"); } catch (Exception ex) { ApplicationLog.WriteLine(string.Format((IFormatProvider)null, "SelfDistributable BVT: SelfDistributable Cancel Validated successfully:", ex.Message)); Assert.Fail("SelfDistributable BVT: SelfDistributable Cancel Not validated successfully"); } }
public void ValidateDistribute() { Locally locally = new Locally(); IDistributable idistributable = new CommandApp(); try { locally.Cleanup = true; locally.TaskCount = 10; locally.Tasks = new RangeCollection(1, 500); locally.Distribute(idistributable); ApplicationLog.WriteLine("Locally BVT: Locally Distribute Validated successfully"); } catch (Exception ex) { ApplicationLog.WriteLine(string.Format((IFormatProvider)null, "Locally BVT: Locally Distribute not validated successfully:", ex.Message)); Assert.Fail("Locally BVT: Locally Distribute Not validated successfully"); } }
public void ValidateCleanup() { CommandApp commandApp = new CommandApp(); try { commandApp.Cleanup(10); ApplicationLog.WriteLine("CommandApp BVT: CommandApp Cleanup Validated successfully"); } catch (Exception ex) { ApplicationLog.WriteLine(string.Format((IFormatProvider)null, "CommandApp BVT: CommandApp Cleanup Not validated successfully:", ex.Message)); Assert.Fail("CommandApp BVT: CommandApp Cleanup Not validated successfully"); } }