Skip to content

Instantly share code, notes, and snippets.

View Andrea's full-sized avatar
🦦

Andrea Andrea

🦦
View GitHub Profile
public class MyClassTests
{
public class Given_a_context
{
[Fact]
public void When_somthing_happens_Then_result()
{
throw new NotImplementedException();
}
/*!
* Ext JS Library 3.1.0
* Copyright(c) 2006-2009 Ext JS, LLC
* licensing@extjs.com
* http://www.extjs.com/license
*/
Ext.onReady(function(){
// NOTE: This is an example showing simple state management. During development,
// it is generally best to disable state management as dynamically-generated ids
[Fact] //this is a the test attribute when using xUnit
public void When_xml_Something_Then_serialize_returns_null()
{
string serializedObject =
"<?xml version=\"1.0\" encoding=\"utf-8\"?><MyClass xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns=\"http://exampleA.org\" />";
using (var stringReader = new StringReader(serializedObject))
{
Assert.Null(new XmlSerializer(typeof(MyClass)).Deserialize(stringReader));
}
<tmpvar> hello
<schmorp> hi
<tmpvar> hey, have you heard of any success with getting libeio built/running on windows?
<schmorp> no
<schmorp> it's not supposed to work, really
<schmorp> (windows doesn't support 99% or so of the required api)
<tmpvar> hrm
<tmpvar> yeah, good ol' windows.
* _ry (~ry@tinyclouds.org) has joined #schmorp
<_ry> schmorp: what's wrong with libeio on windows?
@Andrea
Andrea / StoryQNoReports
Created May 23, 2011 07:50
If you run this with xunit (I have 1.8) on release mode . there are no reports generated
namespace StoryQReportWithXunit
{
using StoryQ;
using Xunit;
public class Class1
{
[Fact]
public void When_Then()
{
@Andrea
Andrea / gist:996865
Created May 28, 2011 13:38
"hello world" with three
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>three.js webgl - materials - shaders [Fresnel]</title>
<meta charset="utf-8">
<style type="text/css">
body {
background:#000;
padding:0;
margin:0;
@Andrea
Andrea / cubelight.html
Created May 28, 2011 15:19
Cube with lights in three
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>three.js webgl - materials - shaders [Fresnel]</title>
<meta charset="utf-8">
<style type="text/css">
body {
background:#ccc;
padding:0;
margin:0;
public void MyMethod()
{
switch ( something )
{
// other stuff ...
case x:
{
// do some stuff here
// need to perform case y too for this specific case
@Andrea
Andrea / gist:1185789
Created September 1, 2011 09:24
Map reduce by Date by source
static void Main(string[] args)
{
OtherStuff();
}
private static void OtherStuff()
{
var store = new DocumentStore { Url = "http://bfsuser01:8080/" };
namespace ravenConsole
{
using System;
using System.Linq;
using Raven.Client.Document;
using Raven.Client.Indexes;
using Xunit;
public class DocumentsTests
{