Remove more bitrot to fix the build

This commit is contained in:
Alex Corrado 2011-12-05 02:27:29 -05:00
Родитель ce9d2e262b
Коммит 8f2dbdc3ae
4 изменённых файлов: 1 добавлений и 121 удалений

Просмотреть файл

@ -16,8 +16,7 @@ MANAGED = \
FieldTests.cs \
InheritanceTests.cs \
ManglingTests.cs \
MarshalingTests.cs \
Support/CppNUnitAsserts.cs
MarshalingTests.cs
REFERENCES = \
-pkg:mono-nunit

Просмотреть файл

@ -1,8 +1,6 @@
using System;
using NUnit.Framework;
using Tests.Support;
namespace Tests {
[TestFixture]

Просмотреть файл

@ -1,116 +0,0 @@
//
// CppNUnitAsserts.cs: Exposes NUnit Assert methods to C++
//
// Author:
// Alexander Corrado (alexander.corrado@gmail.com)
//
// Copyright (C) 2010 Alexander Corrado
//
using System;
using System.Runtime.InteropServices;
using NUnit.Framework;
using Mono.Cxxi;
namespace Tests.Support {
public static class CppNUnitAsserts {
private interface IAssert : ICppClassOverridable<Assert> {
[Virtual] void Fail (CppInstancePtr @this, string message);
[Virtual] void Fail (CppInstancePtr @this);
[Virtual] void IsTrue (CppInstancePtr @this, bool condition, string message);
[Virtual] void IsTrue (CppInstancePtr @this, bool condition);
[Virtual] void IsFalse (CppInstancePtr @this, bool condition, string message);
[Virtual] void IsFalse (CppInstancePtr @this, bool condition);
[Virtual] void IsEmpty (CppInstancePtr @this, string aString, string message);
[Virtual] void IsEmpty (CppInstancePtr @this, string aString);
[Virtual] void IsNotEmpty (CppInstancePtr @this, string aString, string message);
[Virtual] void IsNotEmpty (CppInstancePtr @this, string aString);
[Virtual] void AreEqual (CppInstancePtr @this, int expected, int actual, string message);
[Virtual] void AreEqual (CppInstancePtr @this, int expected, int actual);
[Virtual] void AreEqual (CppInstancePtr @this, long expected, long actual, string message);
[Virtual] void AreEqual (CppInstancePtr @this, long expected, long actual);
[Virtual] void AreEqual (CppInstancePtr @this, uint expected, uint actual, string message);
[Virtual] void AreEqual (CppInstancePtr @this, uint expected, uint actual);
[Virtual] void AreEqual (CppInstancePtr @this, ulong expected, ulong actual, string message);
[Virtual] void AreEqual (CppInstancePtr @this, ulong expected, ulong actual);
[Virtual] void AreEqual (CppInstancePtr @this, double expected, double actual, double delta, string message);
[Virtual] void AreEqual (CppInstancePtr @this, double expected, double actual, double delta);
[Virtual] void AreEqual (CppInstancePtr @this, float expected, float actual, float delta, string message);
[Virtual] void AreEqual (CppInstancePtr @this, float expected, float actual, float delta);
[Virtual] void AreNotEqual (CppInstancePtr @this, int expected, int actual, string message);
[Virtual] void AreNotEqual (CppInstancePtr @this, int expected, int actual);
[Virtual] void AreNotEqual (CppInstancePtr @this, long expected, long actual, string message);
[Virtual] void AreNotEqual (CppInstancePtr @this, long expected, long actual);
[Virtual] void AreNotEqual (CppInstancePtr @this, uint expected, uint actual, string message);
[Virtual] void AreNotEqual (CppInstancePtr @this, uint expected, uint actual);
[Virtual] void AreNotEqual (CppInstancePtr @this, ulong expected, ulong actual, string message);
[Virtual] void AreNotEqual (CppInstancePtr @this, ulong expected, ulong actual);
[Virtual] void AreNotEqual (CppInstancePtr @this, double expected, double actual, string message);
[Virtual] void AreNotEqual (CppInstancePtr @this, double expected, double actual);
[Virtual] void AreNotEqual (CppInstancePtr @this, float expected, float actual, string message);
[Virtual] void AreNotEqual (CppInstancePtr @this, float expected, float actual);
[Virtual] void Greater (CppInstancePtr @this, int expected, int actual, string message);
[Virtual] void Greater (CppInstancePtr @this, int expected, int actual);
[Virtual] void Greater (CppInstancePtr @this, long expected, long actual, string message);
[Virtual] void Greater (CppInstancePtr @this, long expected, long actual);
[Virtual] void Greater (CppInstancePtr @this, uint expected, uint actual, string message);
[Virtual] void Greater (CppInstancePtr @this, uint expected, uint actual);
[Virtual] void Greater (CppInstancePtr @this, ulong expected, ulong actual, string message);
[Virtual] void Greater (CppInstancePtr @this, ulong expected, ulong actual);
[Virtual] void Greater (CppInstancePtr @this, double expected, double actual, string message);
[Virtual] void Greater (CppInstancePtr @this, double expected, double actual);
[Virtual] void Greater (CppInstancePtr @this, float expected, float actual, string message);
[Virtual] void Greater (CppInstancePtr @this, float expected, float actual);
[Virtual] void Less (CppInstancePtr @this, int expected, int actual, string message);
[Virtual] void Less (CppInstancePtr @this, int expected, int actual);
[Virtual] void Less (CppInstancePtr @this, long expected, long actual, string message);
[Virtual] void Less (CppInstancePtr @this, long expected, long actual);
[Virtual] void Less (CppInstancePtr @this, uint expected, uint actual, string message);
[Virtual] void Less (CppInstancePtr @this, uint expected, uint actual);
[Virtual] void Less (CppInstancePtr @this, ulong expected, ulong actual, string message);
[Virtual] void Less (CppInstancePtr @this, ulong expected, ulong actual);
[Virtual] void Less (CppInstancePtr @this, double expected, double actual, string message);
[Virtual] void Less (CppInstancePtr @this, double expected, double actual);
[Virtual] void Less (CppInstancePtr @this, float expected, float actual, string message);
[Virtual] void Less (CppInstancePtr @this, float expected, float actual);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, int expected, int actual, string message);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, int expected, int actual);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, long expected, long actual, string message);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, long expected, long actual);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, uint expected, uint actual, string message);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, uint expected, uint actual);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, ulong expected, ulong actual, string message);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, ulong expected, ulong actual);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, double expected, double actual, string message);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, double expected, double actual);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, float expected, float actual, string message);
[Virtual] void GreaterOrEqual (CppInstancePtr @this, float expected, float actual);
[Virtual] void LessOrEqual (CppInstancePtr @this, int expected, int actual, string message);
[Virtual] void LessOrEqual (CppInstancePtr @this, int expected, int actual);
[Virtual] void LessOrEqual (CppInstancePtr @this, long expected, long actual, string message);
[Virtual] void LessOrEqual (CppInstancePtr @this, long expected, long actual);
[Virtual] void LessOrEqual (CppInstancePtr @this, uint expected, uint actual, string message);
[Virtual] void LessOrEqual (CppInstancePtr @this, uint expected, uint actual);
[Virtual] void LessOrEqual (CppInstancePtr @this, ulong expected, ulong actual, string message);
[Virtual] void LessOrEqual (CppInstancePtr @this, ulong expected, ulong actual);
[Virtual] void LessOrEqual (CppInstancePtr @this, double expected, double actual, string message);
[Virtual] void LessOrEqual (CppInstancePtr @this, double expected, double actual);
[Virtual] void LessOrEqual (CppInstancePtr @this, float expected, float actual, string message);
[Virtual] void LessOrEqual (CppInstancePtr @this, float expected, float actual);
}
private static CppInstancePtr? nunitInterface;
public static void Init ()
{
if (!nunitInterface.HasValue)
nunitInterface = CppInstancePtr.ForManagedObject<IAssert,Assert> (null);
SetNUnitInterface ((IntPtr)nunitInterface.Value);
}
[DllImport("CPPTestLib")]
private static extern void SetNUnitInterface (IntPtr nunit);
}
}

Просмотреть файл

@ -50,7 +50,6 @@
<CodeAnalysisRuleSet>AllRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<ItemGroup>
<Compile Include="Support\CppNUnitAsserts.cs" />
<Compile Include="MarshalingTests.cs" />
<Compile Include="InheritanceTests.cs" />
<Compile Include="FieldTests.cs" />