Skip to content

Instantly share code, notes, and snippets.

Dmitry Martynov domartynov

  • Compatibl
  • New York, NY
View GitHub Profile
@domartynov
domartynov / TestDir.cs
Last active Jun 25, 2018
Reusable test dir per test logic added via [TestDir.Use] for xunit
View TestDir.cs
using System;
using System.Collections.Generic;
using System.IO;
using System.Reflection;
using System.Threading;
using FluentAssertions;
using Xunit;
using Xunit.Sdk;
namespace ExcelReporting.Tests.Common
View ComObjectMapper.cs
using ...
static void Main(string[] args)
{
var x = (Microsoft.Office.Interop.Excel._Application) Marshal.GetActiveObject("Excel.Application");
x.ChartDataPointTrack = false;
MapperRegistry.Mappers.Add(new ComObjectMapper());
var config = new MapperConfiguration(c => c.CreateMap<Microsoft.Office.Interop.Excel._Application, App>());
config.AssertConfigurationIsValid();
var mapper = config.CreateMapper();
@domartynov
domartynov / task
Created Oct 30, 2013
Rain Water Volume Task
View task
using System;
using Xunit;
namespace RainTask
{
public class Task
{
[Fact]
public void TestNoLand()
{
You can’t perform that action at this time.