public void Constructor() { //---------------Set up test pack------------------- var iocContainer = Substitute.For <IThuriaIocContainer>(); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var actorSystem = new HeliumActorSystem(iocContainer); //---------------Test Result ----------------------- actorSystem.Should().NotBeNull(); }
public void Name_ShouldBeExpectedName() { //---------------Set up test pack------------------- var iocContainer = Substitute.For <IThuriaIocContainer>(); var actorSystem = new HeliumActorSystem(iocContainer); //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- var actorSystemName = actorSystem.Name; //---------------Test Result ----------------------- actorSystemName.Should().Be("Helium"); }
public void Start_ShouldNotThrowExceptionAndCreateActorSystem() { //---------------Set up test pack------------------- var iocContainer = CreateIocContainer(); using (var actorSystem = new HeliumActorSystem(iocContainer)) { //---------------Assert Precondition---------------- //---------------Execute Test ---------------------- Assert.DoesNotThrow(() => actorSystem.Start()); //---------------Test Result ----------------------- actorSystem.ActorSystem.Should().NotBeNull(); } }