public void ThenTheAttributeIsNotFound() { bool result = _sut.TryGet("iDontExist", out _); Assert.IsFalse(result); result = _sut.TryGet("SHIB_iDontExist", out _); Assert.IsFalse(result); Assert.ThrowsException <ArgumentException>(() => _sut.Get("iDontExist")); }
public void ThenTheAttributeIsFound() { string uid = _sut.Get(ShibbolethAttributes.UID_KEY); Assert.AreEqual("u0000001", uid); uid = _sut.GetUid(); Assert.AreEqual("u0000001", uid); var result = _sut.GetAll(); Assert.AreEqual(1, result.Count); Assert.AreEqual("u0000001", result[ShibbolethAttributes.UID_KEY]); }