Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jagwire
jagwire / AutomaticTestExample.cs
Created February 8, 2016 16:00
Automatic Testing Scenario in Unity
namespace MHS {
interface ISpinner {
public void spin(Vector3 value);
}
[Serializable]
public SpinController { //we can instantiate this in a test
public float speed;
public Vector3 axis;
require 'rubygems'
require 'sinatra'
require 'data_mapper'
require 'json'
require 'thin'
class MyThinBackend < ::Thin::Backends::TcpServer
def initialize(host, port, options)
super(host,port)
require 'rubygems'
require 'sinatra'
set :port, 80
set :bind, '0.0.0.0'
get "/*" do
host = request.host
path = request.path