public void Hash_Method() { Assert.Throws<ArgumentNullException>(() => new GravatarImageUrlWidget().Hash(null)); Assert.Throws<ArgumentException>(() => new GravatarImageUrlWidget().Hash(string.Empty)); var widget = new GravatarImageUrlWidget(); Assert.Null(widget.Hash()); Assert.True(ReferenceEquals(widget.Hash("hash"), widget)); Assert.Equal("hash", widget.Hash()); }
public void Hash_Method() { Assert.Throws <ArgumentNullException>(() => new GravatarImageUrlWidget().Hash(null)); Assert.Throws <ArgumentException>(() => new GravatarImageUrlWidget().Hash(string.Empty)); var widget = new GravatarImageUrlWidget(); Assert.Null(widget.Hash()); Assert.True(ReferenceEquals(widget.Hash("hash"), widget)); Assert.Equal("hash", widget.Hash()); }
public void Constructors() { var widget = new GravatarImageUrlWidget(); Assert.Null(widget.Extension()); Assert.Null(widget.Hash()); Assert.False(widget.Field("parameters").To<IDictionary<string, object>>().Any()); }
public void Constructors() { var widget = new GravatarImageUrlWidget(); Assert.Null(widget.Extension()); Assert.Null(widget.Hash()); Assert.False(widget.Field("parameters").To <IDictionary <string, object> >().Any()); }