public void Extra_Method() { Assert.Throws<ArgumentNullException>(() => new VideoJSPlayerWidget().Width(null)); Assert.Throws<ArgumentException>(() => new VideoJSPlayerWidget().Width(string.Empty)); var widget = new VideoJSPlayerWidget(); Assert.Null(widget.Extra()); Assert.True(ReferenceEquals(widget.Extra("extra"), widget)); Assert.Equal("extra", widget.Extra()); }
public void Extra_Method() { Assert.Throws <ArgumentNullException>(() => new VideoJSPlayerWidget().Width(null)); Assert.Throws <ArgumentException>(() => new VideoJSPlayerWidget().Width(string.Empty)); var widget = new VideoJSPlayerWidget(); Assert.Null(widget.Extra()); Assert.True(ReferenceEquals(widget.Extra("extra"), widget)); Assert.Equal("extra", widget.Extra()); }
public void Constructors() { var widget = new VideoJSPlayerWidget(); Assert.Null(widget.Extra()); Assert.Null(widget.Width()); Assert.Null(widget.Height()); Assert.False(widget.Videos().Any()); }