public void MetroHashConfig_Defaults_HaventChanged() { var metroHashConfig = new MetroHashConfig(); Assert.Equal(0UL, metroHashConfig.Seed); }
public void MetroHashConfig_Clone_Works() { var metroHashConfig = new MetroHashConfig() { Seed = 1, }; var metroHashConfigClone = metroHashConfig.Clone(); Assert.IsType <MetroHashConfig>(metroHashConfigClone); Assert.Equal(metroHashConfig.Seed, metroHashConfigClone.Seed); }
public void MetroHash128Factory_Create_Works() { var defaultMetroHashConfig = new MetroHashConfig(); var metroHashFactory = MetroHash128Factory.Instance; var metroHash = metroHashFactory.Create(); Assert.NotNull(metroHash); Assert.IsType <MetroHash128_Implementation>(metroHash); var resultingMetroHashConfig = metroHash.Config; Assert.Equal(defaultMetroHashConfig.Seed, resultingMetroHashConfig.Seed); }
public void MetroHash64Factory_Create_Config_Works() { var metroHashConfig = new MetroHashConfig() { Seed = 1, }; var metroHashFactory = MetroHash64Factory.Instance; var metroHash = metroHashFactory.Create(metroHashConfig); Assert.NotNull(metroHash); Assert.IsType <MetroHash64_Implementation>(metroHash); var resultingMetroHashConfig = metroHash.Config; Assert.Equal(metroHashConfig.Seed, resultingMetroHashConfig.Seed); }