This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Tests | |
{ | |
//Why is this not discovered? | |
[MyArrayTest] | |
public void ThisDoesntWork(byte[] bytes) | |
{ | |
Xunit.Assert.True(true); | |
} | |
[MyStringTest] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public interface IMakeStuff : IObserver<int>, IObserver<string>, IObserver<bool> { } | |
public class Tests | |
{ | |
[Fact] | |
public void SimpleTest() | |
{ | |
var maker = new Mock<IMakeStuff>() | |
// Exception here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace ClassLibrary1 | |
{ | |
public class Class1 | |
{ | |
public Class1() | |
{ | |
var x = new DiagnosticMessage(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Microsoft.ServiceBus.Messaging; | |
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace QueueClientRepro | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections.Generic; | |
using Microsoft.AspNet.Mvc; | |
namespace WebApplication1.Controllers | |
{ | |
[Route("api/[controller]")] | |
[RequireHttps] | |
public class ValuesController : Controller | |
{ | |
// GET: api/values |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Startup | |
{ | |
public Startup(IHostingEnvironment env) | |
{ | |
var builder = new ConfigurationBuilder().AddJsonFile("appsettings.json"); | |
Configuration = builder.Build(); | |
} | |
public IConfigurationRoot Configuration { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Instatiate A and call start | |
public class A | |
{ | |
private readonly C _c; | |
public A() | |
{ | |
_c = new C(); | |
var b = new B(new[] { _c }); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
declare type DataReceived = (data: any) => void; | |
class Connection { | |
constructor() { | |
let thisHubConnection = this; | |
this.dataReceived = data => { | |
this.log(data); | |
thisHubConnection.log(data); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let clientConfig = { | |
entry: "./src/website/js/App.tsx" | |
} | |
let serverConfig = { | |
entry: "./src/server/server.js", | |
output: { | |
path: path.resolve(__dirname, "dist"), | |
filename: "server.js", | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http { | |
resolver 127.0.0.11 valid=1s; | |
server { | |
listen 80; | |
set $foo "http://foo:80"; | |
set $bar "http://bar:80"; | |
location /foo/ { | |
rewrite ^/foo/(.*) /$1 break; |
OlderNewer