~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/AddIns/BackendBindings/Python/PythonBinding/Test/Completion/MathModuleMembersInPythonContextTestFixture.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 System.Collections.Generic;
 
6
using IronPython.Hosting;
 
7
using IronPython.Modules;
 
8
using IronPython.Runtime;
 
9
using Microsoft.Scripting.Hosting;
 
10
using Microsoft.Scripting.Hosting.Providers;
 
11
using Microsoft.Scripting.Runtime;
 
12
using NUnit.Framework;
 
13
 
 
14
namespace PythonBinding.Tests.Completion
 
15
{
 
16
        [TestFixture]
 
17
        public class MathModuleMembersInPythonContextTestFixture
 
18
        {
 
19
                [Test]
 
20
                public void UnableToGetMathModuleFromBuiltinModuleDictionary()
 
21
                {
 
22
                        ScriptEngine engine = Python.CreateEngine();
 
23
                        PythonContext context = HostingHelpers.GetLanguageContext(engine) as PythonContext;
 
24
                        
 
25
                        object mathModuleFromBuiltinModuleDictionaryObject = null;
 
26
                        context.BuiltinModuleDict.TryGetValue("math", out mathModuleFromBuiltinModuleDictionaryObject);
 
27
                        Assert.IsNull(mathModuleFromBuiltinModuleDictionaryObject);
 
28
                }
 
29
        }
 
30
}