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