public void PearsonConfig_Clone_Works() { var pearsonConfig = new PearsonConfig() { Table = new byte[256], HashSizeInBits = 16, }; var pearsonConfigClone = pearsonConfig.Clone(); Assert.IsType <PearsonConfig>(pearsonConfigClone); Assert.Equal(pearsonConfig.Table, pearsonConfigClone.Table); }
public void PearsonConfig_Clone_WithNullArrays_Works() { var pearsonConfig = new PearsonConfig() { Table = null, HashSizeInBits = 16, }; var pearsonConfigClone = pearsonConfig.Clone(); Assert.IsType <PearsonConfig>(pearsonConfigClone); Assert.Equal(pearsonConfig.Table, pearsonConfigClone.Table); Assert.Equal(pearsonConfig.HashSizeInBits, pearsonConfigClone.HashSizeInBits); }