public void Size_Verify() { var setting = new Size(852, 480); Assert.DoesNotThrow(() => SettingSerializer.Serialize(setting)); Assert.Equal(SettingSerializer.Serialize(setting), "-s 852x480"); }
public void Size_Verify() { var settingWrong1 = new Size(); var setting = new Size(852, 480); Assert.Throws<InvalidOperationException>(() => { var s = settingWrong1.GetAndValidateString(); }); Assert.DoesNotThrow(() => { var s = setting.GetAndValidateString(); }); Assert.Equal(setting.GetAndValidateString(), "-s 852x480"); }