~ubuntu-branches/ubuntu/feisty/monodevelop/feisty

« back to all changes in this revision

Viewing changes to Core/src/NRefactory/Test/Parser/Statements/ThrowStatementTests.cs

  • Committer: Bazaar Package Importer
  • Author(s): Sebastian Dröge
  • Date: 2006-08-18 00:51:23 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060818005123-5iit07y0j7wjg55f
Tags: 0.11+svn20060818-0ubuntu1
* New SVN snapshot
  + Works with Gtk# 2.9.0
* debian/control:
  + Updated Build-Depends
* debian/patches/use_nunit2.2.dpatch,
  debian/patches/use_real_libs.dpatch:
  + Updated
* debian/patches/versioncontrol_buildfix.dpatch:
  + Fix build failure in the version control addin

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// <file>
 
2
//     <copyright see="prj:///doc/copyright.txt"/>
 
3
//     <license see="prj:///doc/license.txt"/>
 
4
//     <owner name="Mike Krüger" email="mike@icsharpcode.net"/>
 
5
//     <version>$Revision: 915 $</version>
 
6
// </file>
 
7
 
 
8
using System;
 
9
using System.IO;
 
10
using NUnit.Framework;
 
11
using ICSharpCode.NRefactory.Parser;
 
12
using ICSharpCode.NRefactory.Parser.AST;
 
13
 
 
14
namespace ICSharpCode.NRefactory.Tests.AST
 
15
{
 
16
        [TestFixture]
 
17
        public class ThrowStatementTests
 
18
        {
 
19
                #region C#
 
20
                [Test]
 
21
                public void CSharpEmptyThrowStatementTest()
 
22
                {
 
23
                        ThrowStatement throwStmt = ParseUtilCSharp.ParseStatement<ThrowStatement>("throw;");
 
24
                        Assert.IsTrue(throwStmt.Expression.IsNull);
 
25
                }
 
26
                
 
27
                [Test]
 
28
                public void CSharpThrowStatementTest()
 
29
                {
 
30
                        ThrowStatement throwStmt = ParseUtilCSharp.ParseStatement<ThrowStatement>("throw new Exception();");
 
31
                        Assert.IsTrue(throwStmt.Expression is ObjectCreateExpression);
 
32
                }
 
33
                #endregion
 
34
                
 
35
                #region VB.NET
 
36
                        // TODO
 
37
                #endregion 
 
38
        }
 
39
}