Skip to content

Instantly share code, notes, and snippets.

View jacksonh's full-sized avatar
🎯
Focusing

Jackson Harper jacksonh

🎯
Focusing
View GitHub Profile
using Mango;
using Mango.Templates.Minge;
namespace MangoProject {
public class MangoProject : MangoApp {
public override void OnStartup ()
{% extends "base.html" %}
{% block title %}About Mango{% endblock %}
{% block content %}
{{ message }}
{% endblock %}
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html> <head>
<title></title>
</head>
<body>
<h1>{% block title %}{% endblock %}</h1>
{% block content %}
{% endblock %}
using Mango;
using Mango.Templates.Minge;
namespace MangoProject {
//
// A mango application is made of MangoModules and MangoApps
// There really isn't any difference between a Module and an App
using Mango;
using Mango.Templates.Minge;
namespace MangoProject {
//
// A mango application is made of MangoModules and MangoApps
// There really isn't any difference between a Module and an App
// except that the server will load the MangoApp first. A mango
// application can only have one MangoApp, but as many MangoModules
[Test()]
public void TestCtorInvalidMethod ()
{
string name = "tester";
string [] patterns = new string [] { "foo", "bar" };
string [] methods = new string [] { "GET", "PUT", "SKULLFUCK" };
Assert.Throws<ArgumentException> (() => new RouteHandler (name, patterns, methods));
}
jackson@linux-is9q:~/Projects/mono/moon> git pull --rebase
refusing to pull with rebase: your working tree is not up-to-date
jackson@linux-is9q:~/Projects/mono/moon> git pull
Already up-to-date.
diff --git a/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs b/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs
index 8980ec3..a481ebf 100644
--- a/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs
+++ b/main/src/addins/NUnit/NUnitRunner/NUnitTestRunner.cs
@@ -153,7 +153,7 @@ namespace MonoDevelop.NUnit.External
public bool Pass (ITest test)
{
- if ((test is global::NUnit.Core.TestCase) && test.TestName.FullName == name)
+ if (IsTestFixture (test) && test.TestName.FullName == name)
//
// if the textblock is in a managed control like the grid,
// its legal to set FontWeights with an int.
//
Grid grid = XamlReader.Load (@"<Grid xmlns=""http://schemas.microsoft.com/winfx/2006/xaml/presentation""
xmlns:x=""http://schemas.microsoft.com/winfx/2006/xaml"">
<TextBlock x:Name=""the_box"" FontWeight=""600"" />
</Grid>") as Grid;
System.NullReferenceException: Object reference not set to an instance of an object
at System.Windows.FrameworkElementExtensions.IsInVisualTree (System.Windows.FrameworkElement thisObject) [0x00000] in <filename unknown>:0
at Microsoft.Pivot.Internal.Controls.NestableButton.OnUnloaded (System.Object sender, System.Windows.RoutedEventArgs e) [0x00000] in <filename unknown>:0
at Mono.Events+<CreateRoutedEventHandlerDispatcher>c__AnonStoreyB.<>m__9 (IntPtr sender, IntPtr calldata, IntPtr closure) [0x00007] in Events.cs:135
at Mono.Events+<SafeDispatcher>c__AnonStorey2+<SafeDispatcher>c__AnonStorey3.<>m__27 () [0x00000] in Events.cs:70
at Mono.Events.SafeAction (System.Action action) [0x00000] in Events.cs:56