public void IsOpenReturnsFalseWhenActorNotInSet() { var actor = MockRepository.GenerateStub <IFlipperActor>(); actor.Stub(x => x.FlipperId).Return("5"); var gate = new ActorGate(); Assert.That(gate.IsOpen(actor, new HashSet <string>(new[] { "25" }), "feature"), Is.False); }
public void IsOpenReturnsFalseWhenActorNotAnIFlipperActor() { var gate = new ActorGate(); Assert.That(gate.IsOpen(new object(), new HashSet <string>(new[] { "5" }), "feature"), Is.False); }
public void IsOpenReturnsFalseForNullActor() { var gate = new ActorGate(); Assert.That(gate.IsOpen(null, new HashSet <string>(new[] { "5" }), "feature"), Is.False); }