public void CanAddReturnsTrue_IfActorIsNotYetAdded() { var actorHandlersMap = new ActorHandlerMap(); var actor = new EchoActor(); Assert.True(actorHandlersMap.CanAdd(actor)); }
public void CanAddReturnsFalse_IfActorAlreadyAdded() { var actorHandlersMap = new ActorHandlerMap(); var actor = new EchoActor(); actorHandlersMap.Add(actor); Assert.False(actorHandlersMap.CanAdd(actor)); }