public void GateDoesNotThrowWhenUnlocked() { var gate = new AccessGate {IsLocked = false}; Should.NotThrow(() => gate.Enter()); }
public void GateThrowsWhenLocked() { var gate = new AccessGate {IsLocked = true}; Should.Throw<InvalidOperationException>(() => gate.Enter()); }