コード例 #1
0
        public void GetCollection_WhenIsNotInStrategy_ThenThrow()
        {
            //Arrange & Act & Assert
            Action act = () => CollectionDiscover.GetCollection <string>();

            act.Should().Throw <Exception>();
        }
コード例 #2
0
 public void GetCollection_WhenIsInStrategy_ThenReturnCorrectCollection()
 {
     //Arrange & Act & Assert
     CollectionDiscover.GetCollection <Leaderboard>().Should().Be("leaderboard");
 }