public void ResponderCacheReader_All_Should_Only_Return_Responders() { var reader = new NetworkResponderCacheReader(Cache()); var all = reader.Responders(); Assert.All(all, e => Assert.True(e.IsResponder)); }
public void ResponderCacheReader_GetOrDefault_Should_Return_Null_If_Not_Responder() { var reader = new NetworkResponderCacheReader(Cache()); var endpoint = reader.GetResponderOrDefault("leaf.entity2.tld"); Assert.Null(endpoint); }