Skip to content

Instantly share code, notes, and snippets.

View halllo's full-sized avatar

Manuel Naujoks halllo

View GitHub Profile
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace SurrogatePairDetection
{
[TestClass]
public class SurrogatePairDetection
{
[TestMethod]
@halllo
halllo / UserDeserializationTest.cs
Created December 25, 2012 22:21
Problematic crash of TweetSharps JsonSerializer.DeserializeCollection<T>
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json;
using TweetSharp;
namespace TweetSharpProblem
{
[TestClass]
public class UserDeserializationTest
@halllo
halllo / ContactInformations.cs
Created November 20, 2012 21:24
What do you think about the reuse of ContactInformation?
class Address { }
class PhoneNumber { }
//Service 1
class ContactInformations
{
public ContactInformation PhoneNumbers()
{
return new ContactInformation
{
@halllo
halllo / Tests.cs
Created November 19, 2012 21:25
Testing Continuations?
public class ClassUnderTest
{
public static void ReturnIncrementedAfter500ms(int value, Action<int> result)
{
Task.Factory.StartNew(() =>
{
Thread.Sleep(500);
result(value - 1);//BUG
});
}
@halllo
halllo / MainPage.cs
Created July 23, 2011 21:26
MainPageVM
halllowelt.wordpress.comusing System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;