public void CanSetDevice()
        {
            var mockDevice = Substitute.For <IDevice>();

            var audioSettings = new NAudioSettings {
                Device = mockDevice
            };

            audioSettings.Device.Should().Equal(mockDevice);
        }
        public void SettingDeviceNotifiesPropertyChanged()
        {
            var mockDevice    = Substitute.For <IDevice>();
            var audioSettings = new NAudioSettings();

            bool called = false;

            audioSettings.PropertyChanged += (sender, e) =>
            {
                if (e.PropertyName == "Device")
                {
                    called = true;
                }
            };

            audioSettings.Device = mockDevice;

            called.Should().Be.True();
        }
        public void DeviceIsInitiallyNull()
        {
            var audioSettings = new NAudioSettings();

            audioSettings.Device.Should().Be.Null();
        }
        public void TechnologiesListIsNotNull()
        {
            var audioSettings = new NAudioSettings();

            audioSettings.Technologies.Should().Count.AtLeast(0);
        }