public void StepStorageTest() { var storage = new StepStorage(); var step1 = new step(); var step2 = new step(); var step3 = new step(); storage.Put(step1); Assert.AreEqual(2, storage.Get().Count); Assert.AreEqual(step1, storage.Last); new Thread(() => { storage.Put(step2); Thread.Sleep(100); Assert.AreEqual(2, storage.Get().Count); Assert.AreEqual(step2, storage.Last); }).Start(); new Thread(() => { storage.Put(step3); Assert.AreEqual(2, storage.Get().Count); Assert.AreEqual(step3, storage.Last); }).Start(); }
protected Allure() { Logger.Setup(); StepStorage = new StepStorage(); TestCaseStorage = new TestCaseStorage(); TestSuiteStorage = new TestSuiteStorage(); }