public void PassTheory(int value) { var tested = new Tested(); var actual = tested.ReturnInt(value); (actual).ShouldBe(value); }
public void Pass() { string expected = "expected"; var tested = new Tested(); var actual = tested.ReturnString(expected); (actual).ShouldBe(expected); }
public void PassWithDisplayName() { var expected = "DisplayName"; var tested = new Tested(); var actual = tested.ReturnString(expected); (actual).ShouldBe(expected); }
public void Pass2() { int expected = 1; var tested = new Tested(); var actual = tested.ReturnInt(expected); (actual).ShouldBe(expected); }
public void InsertSprintEntity_ShouldBeDone() { //Arrange PetriNetsFacade Facade = new PetriNetsFacade(); SprintEntity testEntity = new Tested(); Facade.InsertSprintEntity(testEntity); //Act Facade.PetriNetwork.ShouldContain(testEntity); }
public void TaskTested_Close_ShouldBeDone() { //Arrange State tested = new Tested(); Task task = new Task(tested); //Act task.Close(); //Assert task.State.ShouldBeOfType(typeof(Done)); }
public void Evaluate_ShouldBeDone() { //Arrange PetriNetsFacade Facade = new PetriNetsFacade(); SprintEntity testEntity = new Tested(); Facade.InsertSprintEntity(testEntity); Facade.Evaluate(Facade.PetriNetwork.Entities); //Act Facade.resultEvaluator.ShouldAllBe(string); }
public void register_should_add_activator_for_event_receiver() { // arrange var registry = new EventRegistrar(); var tested = new Tested(); // act registry.Register(() => new Receiver()); // assert registry.ResolveFor(tested).Should().ContainItemsAssignableTo <Receiver>(); }
public void Run_ShouldBeDone() { //Arrange PetriNetsFacade Facade = new PetriNetsFacade(); SprintEntity testEntity = new Tested(); SprintEntity token = new SprintEntities(); Facade.InsertSprintEntity(testEntity); Facade.Run(token); //Act Facade.resultRun.ShouldAllBe(string); }
public void resolve_for_event_should_return_defined_receivers() { // arrange var services = new Dictionary <Type, object>() { [typeof(IEnumerable <IReceiveEvent <Tested> >)] = new[] { new Receiver() } }; var registry = new EventRegistrar(new ServiceProvider(services)); var tested = new Tested(); // act var receivers = registry.ResolveFor(tested); // assert receivers.Should().ContainItemsAssignableTo <Receiver>(); }
public static void startBuildProcess(string buildRequest) // Initiating the thread process { XmlParsing xml = new XmlParsing(); xml.XMLLoad("../../../RepositoryStorage/" + buildRequest); Author = xml.Parse("author"); DateTime = xml.Parse("dateTime"); Tested = xml.ParseList("tested"); String testDriver = xml.Parse("testDriver"); Tested.Add(testDriver); CommMessage requestFiles = new CommMessage(CommMessage.MessageType.request); requestFiles.author = "ChildBuilder"; requestFiles.command = "RequestParsedFiles"; requestFiles.fileName = FolderPath + "/"; requestFiles.from = "http://localhost:" + PortChildBuilder.ToString() + "/IMessagePassingComm"; requestFiles.to = "http://localhost:8081/IMessagePassingComm"; requestFiles.arguments = Tested; childbuilder.postMessage(requestFiles); }