Пример #1
0
 public void Static_Build_Returns_AppCenterSecret(
     string appleSecret,
     string androidSecret)
 => AppCenterSecretsBuilder
 .Build(appleSecret, androidSecret)
 .Should()
 .Be($"ios={appleSecret};android={androidSecret}");
Пример #2
0
 public void Build_Returns_NotNull(
     AppCenterSecretsBuilder sut,
     string appleSecret,
     string androidSecret)
 => sut
 .SetAppleSecret(appleSecret)
 .SetAndroidSecret(androidSecret)
 .Build()
 .Should()
 .NotBeNullOrWhiteSpace();
Пример #3
0
 public void Build_Returns_AppCenterSecret(
     AppCenterSecretsBuilder sut,
     string appleSecret,
     string androidSecret)
 => sut
 .SetAppleSecret(appleSecret)
 .SetAndroidSecret(androidSecret)
 .Build()
 .Should()
 .Be($"ios={appleSecret};android={androidSecret}");
Пример #4
0
 public void Requires_AndroidSecret(AppCenterSecretsBuilder sut)
 => new Action(() => sut.SetAndroidSecret(null))
 .Should()
 .ThrowExactly <ArgumentNullException>();