public void Export()
 {
     CogProject project = CreateProject();
     var exporter = new NexusCognateSetsExporter();
     using (var stream = new MemoryStream())
     {
         exporter.Export(stream, project);
         Assert.That(Encoding.UTF8.GetString(stream.ToArray()), Is.EqualTo(string.Format(NexusFileTemplate, "112", "112", "111")));
     }
 }
 public void Export_EmptyProject()
 {
     var project = new CogProject(_spanFactory);
     var exporter = new NexusCognateSetsExporter();
     using (var stream = new MemoryStream())
     {
         exporter.Export(stream, project);
         Assert.That(Encoding.UTF8.GetString(stream.ToArray()), Is.EqualTo(@"#NEXUS
     BEGIN Taxa;
     DIMENSIONS NTax=0;
     TAXLABELS;
     END;
     BEGIN Characters;
     DIMENSIONS NChar=0;
     FORMAT Datatype=STANDARD Missing=? Symbols=""0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"";
     MATRIX;
     END;
     "));
     }
 }