public void ToStringExpectedResult() { PluginSettingDescriptor tested = new PluginSettingDescriptor() { Name = "testName", Required = true, SettingType = typeof(string) }; string expected = "testName [required] " + typeof(string).AssemblyQualifiedName; StringAssert.Equals(expected, tested.ToString()); tested.Required = false; expected = "testName [required] " + typeof(string).AssemblyQualifiedName; StringAssert.Equals(expected, tested.ToString()); }