Skip to content

Instantly share code, notes, and snippets.

@appel1
appel1 / TestFixture.cs
Last active May 5, 2020 09:32
Test fixture that doesn't work very well using NUnit3TestAdapter
using System.Collections.Generic;
using System.Linq;
using System.IO;
using NUnit.Framework;
public class TestFixture
{
public static IEnumerable<string> FormatFactory()
{
yield return "Some string {0}";
@appel1
appel1 / ExcelReaderSheetNames.cs
Last active July 7, 2017 07:03
Read sheet names
public static class ExcelReaderSheetNames
{
public static IEnumerable<string> ReadSheetNames(Strema stream)
{
using (var r = ExcelReaderFactory.CreateReader(stream)
{
do
{
yield return r.Name;
}