1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
5
using ICSharpCode.RubyBinding;
6
using ICSharpCode.Scripting.Tests.Utils;
9
namespace RubyBinding.Tests.Designer
12
/// Converts a custom class that has a custom TypeConverter defined.
13
/// This type converter implements an InstanceDescriptor which is used to generate the
14
/// code to create an instance of the class.
17
public class ConvertCustomClassUsingTypeConverterTestFixture
20
public void ConvertCustomClass()
22
CustomClass customClass = new CustomClass("Test", "Category");
23
string text = RubyPropertyValueAssignment.ToString(customClass);
24
string expectedText = "ICSharpCode::Scripting::Tests::Utils::CustomClass.new(\"Test\", \"Category\")";
25
Assert.AreEqual(expectedText, text);