public void TryEnterReturnsTrueWhenUnlocked() { var gate = new AccessGate { IsLocked = false }; gate.TryEnter().ShouldBeTrue(); }
public void TryEnterReturnsFalseWhenLocked() { var gate = new AccessGate { IsLocked = true }; gate.TryEnter().ShouldBeFalse(); }