Skip to content

Commit

Permalink
Test ToCourseOfferingSubDirectory
Browse files Browse the repository at this point in the history
  • Loading branch information
angrave committed Jan 21, 2024
1 parent 914c03a commit 0489254
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions UnitTests/ClassTranscribeDatabase/CommonUtilsTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,14 @@ public void Get_Related_Course_Offering()
_context.Transcriptions.Add(t);
_context.SaveChanges();

Assert.Equal(expected, CommonUtils.GetRelatedCourseOfferingFilePath(_context,c));
Assert.Equal(expected, CommonUtils.GetRelatedCourseOfferingFilePath(_context,o));
Assert.Equal(expected, CommonUtils.GetRelatedCourseOfferingFilePath(_context,p));
Assert.Equal(expected, CommonUtils.GetRelatedCourseOfferingFilePath(_context,m));
Assert.Equal(expected, CommonUtils.GetRelatedCourseOfferingFilePath(_context,v));
Assert.Equal(expected, CommonUtils.GetRelatedCourseOfferingFilePath(_context,t));

Assert.Throws<InvalidOperationException>(
() => CommonUtils.GetRelatedCourseOfferingFilePath(_context,new Message()));
Assert.Equal(expected, CommonUtils.ToCourseOfferingSubDirectory(_context,c));
Assert.Equal(expected, CommonUtils.ToCourseOfferingSubDirectory(_context,o));
Assert.Equal(expected, CommonUtils.ToCourseOfferingSubDirectory(_context,p));
Assert.Equal(expected, CommonUtils.ToCourseOfferingSubDirectory(_context,m));
Assert.Equal(expected, CommonUtils.ToCourseOfferingSubDirectory(_context,v));
Assert.Equal(expected, CommonUtils.ToCourseOfferingSubDirectory(_context,t));


}
}
}

0 comments on commit 0489254

Please sign in to comment.