Beispiel #1
0
        public void OrangeTransparent_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ISoundCloudProfileIconWidgetExtensions.OrangeTransparent(null));

            new SoundCloudProfileIconWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.OrangeTransparent(), widget));
                Assert.Equal("orange_transparent", widget.Color());
            });
        }
Beispiel #2
0
        public void Size_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ISoundCloudProfileIconWidgetExtensions.Size(null, SoundCloudProfileIconSize.Size16));

            new SoundCloudProfileIconWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.Size(SoundCloudProfileIconSize.Size16), widget));
                Assert.Equal((short)16, widget.Size());
            });
        }
Beispiel #3
0
        public void BlackWhite_Method()
        {
            Assert.Throws <ArgumentNullException>(() => ISoundCloudProfileIconWidgetExtensions.BlackWhite(null));

            new SoundCloudProfileIconWidget().Do(widget =>
            {
                Assert.True(ReferenceEquals(widget.BlackWhite(), widget));
                Assert.Equal("black_white", widget.Color());
            });
        }