Skip to content

Support for Xamarin Android #5

@elevine

Description

@elevine

Currently, there are few options for mocking/faking libraries that can run on Xamarin Android. Most libraries like moq and fakeiteasy rely on Castle.Core, which does not have a build for Xamarin Android. Since Foq does not have this dependency, it seems like it has a good chance to work for that platform

I hacked up something quick, and was able to get Foq and the C# tests to run on Xamarin. The issues I encountered were that LinqTests.TestSetupFuncWithReturnsLambda failed with an exception related to bad IL code (seems to be a Mono problem) and Microsoft.FSharp.Control does not seem to be available for Xamarin. I encountered a few more failures running the F# tests on Mono too.

This brings me to my questions:

  1. Is Foq a viable option for Xamarin Android?
  • It seems that there are issues/limitations with F# on Mono. Its not clear to me if any of them would be a showstopper.
    1. If so, would a pull request be accepted that added a Xamarin Android build?
  • Foq on Codeplex has some more recent commits, so its not clear to me where the project lives.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions