public void ToBe( string marbles, Exception error = null) { Ensure.NotNull(marbles, nameof(marbles)); _expectation.HandleToBe(marbles, Marbles.ToNotifications(marbles, error)); }
public ITestableObservable <char> Hot( string marbles, Exception error = null) { Ensure.NotNull(marbles, nameof(marbles)); var messages = Marbles.ToNotifications(marbles, error); return(new HotObservable <char>(this, messages)); }
public ITestableObservable <T> Hot <T>( string marbles, IReadOnlyDictionary <char, T> values, Exception error = null) { Ensure.NotNull(marbles, nameof(marbles)); Ensure.NotNull(values, nameof(values)); Ensure.NotContainsMarkers(values, nameof(values)); var messages = Marbles.ToNotifications(marbles, values, error); return(new HotObservable <T>(this, messages)); }