~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Ruby/RubyBinding/Test/Converter/EmptyCSharpClassConversionTestFixture.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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)
 
3
 
 
4
using System;
 
5
using ICSharpCode.NRefactory;
 
6
using ICSharpCode.RubyBinding;
 
7
using NUnit.Framework;
 
8
 
 
9
namespace RubyBinding.Tests.Converter
 
10
{
 
11
        /// <summary>
 
12
        /// Tests the CSharpToRubyConverter class.
 
13
        /// </summary>
 
14
        [TestFixture]
 
15
        public class EmptyCSharpClassConversionTestFixture
 
16
        {
 
17
                string csharp = "class Foo\r\n" +
 
18
                                                "{\r\n" +
 
19
                                                "}";
 
20
        
 
21
                [Test]
 
22
                public void ConvertedRubyCode()
 
23
                {
 
24
                        NRefactoryToRubyConverter converter = new NRefactoryToRubyConverter(SupportedLanguage.CSharp);
 
25
                        string Ruby = converter.Convert(csharp);
 
26
                        string expectedRuby = "class Foo\r\n" +
 
27
                                                                        "end";
 
28
                        
 
29
                        Assert.AreEqual(expectedRuby, Ruby);
 
30
                }               
 
31
        }
 
32
}